﻿using System.Collections.Generic;

namespace MyAMS.WebServer
{
    /// <summary>
    /// 中间件
    /// </summary>
    public interface IMiddleware : IModule
    {
        /// <summary>
        /// 决定当前实例是否可以被加载
        /// </summary>
        /// <param name="modulesInitializer">模块初始化器</param>
        /// <returns>可以被加载为true;否则false</returns>
        bool IsLoadable(IModulesManager modulesInitializer);
    }
}
